vr2-5-17.wrl
[ VRML source code ]
#VRML V2.0 utf8
#vr2-5-17.wrl
#frame
Transform {
rotation 0 0 1 1.57079
children Shape {
appearance Appearance {
texture ImageTexture {
url "wood.gif"
}
textureTransform TextureTransform {
rotation 0.875
}
}
geometry Cylinder {
radius 5
height 220
}
}
}
Transform {
translation -100 -70 18
rotation 1 0 0 -0.34
children DEF Pole Shape {
appearance Appearance {
texture ImageTexture {
url "wood.gif"
}
textureTransform TextureTransform {
rotation 0.875
}
}
geometry Cylinder {
radius 5
height 150
}
}
}
Transform {
translation -100 -70 -18
rotation 1 0 0 0.34
children USE Pole
}
Transform {
translation 100 -70 18
rotation 1 0 0 -0.34
children USE Pole
}
Transform {
translation 100 -70 -18
rotation 1 0 0 0.34
children USE Pole
}
DEF Stool Transform {
children [
#stool
Transform {
translation 0 -100 0
children Shape {
appearance DEF Wood Appearance {
texture ImageTexture {
url "wood.gif"
}
}
geometry Box {
size 50 5 20
}
}
},
Transform {
children Shape {
appearance USE Wood
geometry Box {
size 50 5 5
}
}
},
#Rope
Transform {
translation -20 -50 0
children DEF Rope Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 0
}
}
geometry Cylinder {
radius 2
height 110
}
}
},
Transform {
translation 20 -50 0
children USE Rope
},
DEF Rot SphereSensor { }
]
}
ROUTE Rot.rotation_changed TO Stool.set_rotation